package com.red.springmanual.springmybatis.use.service;



import com.red.springmanual.springmybatis.use.mapper.OrderMapper;
import com.red.springmanual.springmybatis.use.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserService {

    @Autowired
    private UserMapper userMapper;
    @Autowired
    private OrderMapper orderMapper;


    public void  test(){
        System.out.println(userMapper);
        System.out.println(orderMapper.getUserName());
        System.out.println(userMapper.getUserName());
    }
}
